var t = getApp();

Page({
    data: {
        id: 0,
        detailData: {}
    },
    onLoad: function(t) {
        this.data.id = t.id, this.getDetails();
    },
    onReady: function() {},
    getDetails: function() {
        var a = this, i = t.getNetAddresss("plugin.instation-message.api.message.get-message-detail");
        t._postNetWork({
            url: i,
            data: {
                id: this.data.id
            },
            success: function(t) {
                var i = t.data;
                if (1 != i.result) return a.tips(i.msg);
                i.data = i.data.replace(/<img/gi, '<img style="max-width:100%;height:auto;display:block" '), 
                a.setData({
                    detailData: i.data
                });
            }
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    tips: function(t) {
        return wx.showToast({
            title: t,
            icon: "none",
            duration: 2e3
        }), !1;
    }
});